inputStr = input("请输入一行字符：")

counts = {}
for ch in inputStr:
    counts[ch] = counts.get(ch, 0) + 1

print(counts)

 
